package com.example.security.funtion;

import com.example.core.controller.BaseController;
import com.example.core.service.BaseService;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.util.HashMap;

public class FunctionContext extends HashMap<String, Object> {

    private HttpServletRequest httpServletRequest;
    private HttpServletResponse httpServletResponse;
    private BaseController baseController;
    private BaseService baseService;

    public HttpServletRequest getHttpServletRequest() {
        return httpServletRequest;
    }

    public void setHttpServletRequest(HttpServletRequest httpServletRequest) {
        this.httpServletRequest = httpServletRequest;
    }

    public HttpServletResponse getHttpServletResponse() {
        return httpServletResponse;
    }

    public void setHttpServletResponse(HttpServletResponse httpServletResponse) {
        this.httpServletResponse = httpServletResponse;
    }

    public BaseController getBaseController() {
        return baseController;
    }

    public void setBaseController(BaseController baseController) {
        this.baseController = baseController;
    }

    public BaseService getBaseService() {
        return baseService;
    }

    public void setBaseService(BaseService baseService) {
        this.baseService = baseService;
    }

    public FunctionContext(HttpServletRequest httpServletRequest, HttpServletResponse httpServletResponse, BaseController baseController, BaseService baseService) {
        this.httpServletRequest = httpServletRequest;
        this.httpServletResponse = httpServletResponse;
        this.baseController = baseController;
        this.baseService = baseService;
    }
}
